package com.litong.litongjiaoyu;

import com.litong.litongjiaoyu.server.WebSocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
/**
 * @deprecated 后端启动类
 * @author jingz
 * @version 1.1
 */
@SpringBootApplication(exclude = {MultipartAutoConfiguration.class})
@EnableAsync
public class LitongjiaoyuApplication{
    /**
     * 使用门面模式的日志框架
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(LitongjiaoyuApplication.class);

    public static void main(String[] args) {
        LOGGER.info("====系统开始运行====");
        SpringApplication springApplication = new SpringApplication(LitongjiaoyuApplication.class);

        ConfigurableApplicationContext configurableApplicationContext = springApplication.run(args);

        WebSocket.SetApplicationConfig(configurableApplicationContext);

    }
}
